package com.dongman.model;

import java.util.Date;

/**
 * 章节的所有
 */

public class ChapterPic {

    //顺序就是按照id排序，小的在前面
    private String id;

    private Date createDate;

    private Date updateDate;

    //图片地址
    private String picLink;

    //图片本地名字
    private String basePicName;

    private String chapterId;

    //是否已经下载至本地
    private String isDownToLocal;

    public ChapterPic(String chapterId, String isDownToLocal) {
        this.chapterId = chapterId;
        this.isDownToLocal = isDownToLocal;
    }

    public ChapterPic(String id, Date createDate, Date updateDate, String picLink, String basePicName, String chapterId, String isDownToLocal) {
        this.id = id;
        this.createDate = createDate;
        this.updateDate = updateDate;
        this.picLink = picLink;
        this.basePicName = basePicName;
        this.chapterId = chapterId;
        this.isDownToLocal = isDownToLocal;
    }



    public ChapterPic() {

    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getPicLink() {
        return picLink;
    }

    public void setPicLink(String picLink) {
        this.picLink = picLink;
    }

    public String getBasePicName() {
        return basePicName;
    }

    public void setBasePicName(String basePicName) {
        this.basePicName = basePicName;
    }

    public String getChapterId() {
        return chapterId;
    }

    public void setChapterId(String chapterId) {
        this.chapterId = chapterId;
    }

    public String getIsDownToLocal() {
        return isDownToLocal;
    }

    public void setIsDownToLocal(String isDownToLocal) {
        this.isDownToLocal = isDownToLocal;
    }
    /*public String toString() {
        System.out.println("图片ID：" + this.id);
        System.out.println("创建时间：" + this.createDate);
        System.out.println("更新时间：" + this.updateDate);
        System.out.println("图片地址：" + this.picLink);
        System.out.println("章节Id：" + this.chapterId);
        System.out.println();
        return "";
    }*/
}
